@echo off

REM 定义文件夹路径
set "NODE_FOLDER=ShoppingPlatform-node"
set "VUE_FOLDER=ShoppingPlatform-vue"

REM 端口号
set VUE_PORT=5173

REM 启动Node.js后端服务
REM start "Node Server" /B cmd /k "cd /d "%NODE_FOLDER%" && node index"

REM 启动Vue前端开发服务器
start "Vue Server" /B cmd /k "cd /d "%VUE_FOLDER%" && npm run dev"

start "" http://localhost:%VUE_PORT%

pause >nul